package kr.hkit.powerjava.chapter05;

public class BitOperator {
	public static void main(String[] args) {
		int x = 0x0fff;
		int y = 0xfff0;
		System.out.printf("%x\n", (x & y));
		System.out.printf("%x\n", (x | y));
		System.out.printf("%x\n", (x ^ y));
		System.out.printf("%x\n", ~x );
		System.out.printf("%x\n", (x << 4));
		System.out.printf("%x\n", (x >> 4));
		System.out.print((-1 >>> 4));
		
	}
}
